package com.nononsenseapps.feeder.net.obs

import com.gitee.wsl.jvm.net.server.HttpUriRooterManager
import com.gitee.wsl.jvm.net.server.sampleHttpRouter

val obsRouter: HttpUriRooterManager by lazy {
    sampleHttpRouter("/obs") {
        get("/",200,IndexHandler.Get.Factory)

        get( ActiveHandler.PATH,ActiveHandler.Get.Factory)

        get( VaultHandler.PATH,VaultHandler.Index.Factory)

        get( VaultHandler.PATH_FILENAME,VaultHandler.Get.Factory)
        put( VaultHandler.PATH_FILENAME,VaultHandler.Put.Factory)
        post( VaultHandler.PATH_FILENAME,VaultHandler.Post.Factory)
        patch(VaultHandler.PATH_FILENAME,VaultHandler.Patch.Factory)
        delete( VaultHandler.PATH_FILENAME,VaultHandler.Delete.Factory)

        get(ActiveHandler.Open.PATH,ActiveHandler.Open.Factory)
    }
}
